<div class="right01"><img src="content/images/04.gif" /> <a href="<?php echo site_url(); ?>/C_Main/index/">主页</a> &gt; <span>用户信息</span> 
    <span style="position:absolute;right:0px; padding-right: 15px">
        <a href="<?php echo site_url(); ?>/users/C_Users_Edit">[新建]</a>
    </span>
</div>
<div>
    <table id="table-element" class="tables">
        <thead> 
            <tr>
                <th>编号</th>
                <th>用户名称</th>
                <th>用户密码</th>
                <th>是否为管理员</th>
                <th>操作</th>
                <th>操作</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <?PhP
            if (is_array($listView)) {
                foreach ($listView as $productList) {
                    ?>
                    <tr>
                        <td><?PHP echo $productList['u_id']; ?></td>
                        <td><?PHP echo $productList['u_name']; ?></td>
                        <td><?PHP echo $productList['u_password']; ?></td>
                        <td>
                            <?PHP
                            $pos = strpos($productList["u_admin"], "1");
                            if ($pos !== FALSE)
                                echo '是';
                            else {
                                echo '否';
                            }
                            ?></td>
                        <td><a href="<?php echo site_url(); ?>/users/C_Users_Edit/index/<?PHP echo $productList['u_id']; ?>">[编辑]</a></td>
                        <td><a href="<?php echo site_url(); ?>/users/C_Users_Edit/role_index/<?PHP echo $productList['u_id']; ?>">[权限设置]</a></td>
                        <td><a href="javascript:void(0);" onClick="del('<?PHP echo $productList['u_id']; ?>')">[删除]</a></td>
                    </tr>
                    <?PhP
                }
            }
            ?>
        </tbody>
    </table>
</div>
<script id="scriptInit" type="text/javascript">
    function del(id){
        $.prompt("是否删除该信息？", {
            title: "提示",
            buttons: { "删除": true, "取消": false },
            submit: function(e,v,m,f){
                if (v) {
                    window.location.href="<?php echo site_url(); ?>/users/C_Users_List/delete/"+id;
                }
            }
        });
    }
</script>